/**
 * UserService.java
 *
 *
 * $LastChangedBy:  $
 * $LastChangedDate: $
 * $Revision:  $
 */
package com.myspace.service.user;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.myspace.domain.User;
import com.myspace.common.exception.ErrorPasswordException;
import com.myspace.common.exception.UserNotFoundException;

@Transactional
public interface UserService {

	@Transactional(readOnly=true)
	public User getUser(long userId);

	@Transactional(readOnly=true)
	public User login(User user) throws UserNotFoundException,
			ErrorPasswordException;

	public void update(User user);

	@Transactional(readOnly=true)
	public List<User> getLastUpdated();

	@Transactional(readOnly=true)
	public List<User> getHot();

	public User register(User user);
	@Transactional(readOnly=true)
	public Map<Long, User> findbyIds(Long[] ids);
}
